<template>

  <div>
    INDEX

    <a @click="login1()">点我</a>
  </div>


</template>

<script>
  export default {
    name: 'index',
    data: function (){
      return {
        token:this.GLOBAL.token,
        menu:[],
    }
    },
    computed: {
      menu1:function() {
        this.$axios.HttpGet({url:"/api/getMenuList"},{})
          .then((data) => {
            console.log(data);
            console.log(this);

          }).catch((err)=>{
          console.log(err);
        })
      },
    },
    created () {

    },
    mounted:function(){
      this.$axios.HttpGet({url:"/api/getContent"},{id:this.id})
        .then((data) => {
          this.menu=data.data.list;
          console.log(global.children1);
        }).catch((err)=>{
        console.log(err);
      })
    }
  }
</script>

<style>
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }
</style>
